import os
import sys
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QDialog, QApplication
from PyQt5.QtCore import Qt
from client.pages.Dialog import *


class DialogPage(QDialog, Ui_Dialog):
    def __init__(self, title=u"提示信息", info=u"确认删除？"):
        super(DialogPage, self).__init__()
        self.setupUi(self)
        self.setWindowFlags(Qt.WindowStaysOnTopHint)
        self.setWindowTitle(title)
        self.label.setText(info)


if __name__ == "__main__":
    app = QApplication(sys.argv)
    myWin = DialogPage()
    myWin.show()
    sys.exit(app.exec_())
